package com.cweb.admin.model.sys.sys_city_info.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.cweb.framework.base.entity.BaseMybatisModel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统-城市字典
 * @author changfan
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class SysCityInfo extends BaseMybatisModel {

    private static final long serialVersionUID=1L;

    /**
     * 城市代码
     */
    @TableId(value = "code")
    private String code;

    /**
     * 城市名称
     */
    @TableField(value = "`label`")
    private String label;

    /**
     * 关键字
     */
    @TableField(value = "`key`")
    private String key;

    /**
     * 是否热门 0非热门，1热门
     */
    @TableField(value = "`is_hot`")
    private Boolean isHot;


    @Override
    protected Serializable pkVal() {
        return this.code;
    }

}
